pub enum OutgoingMessage {
Name(String),
Invite {
door: PeerId,
room: RoomKey,
},
Text(String),
File {
name: String,
hash: HashCode,
uri: String,
},
Ticket(String),
Tag {
hash: HashCode,
tag: Option<String>,
},
Subscription {
discourse: ShortHash,
time: Duration,
flags: u32,
},
Talk {
discourse: ShortHash,
data: Vec<u8>,
},
}Expand description
Сообщение, которое клиент может отправить сам. Остальные виды создаёт
сервис либо отдельные операции (enter_room, close, set_key,
delete, адресная отправка).
Variants§
Name(String)
Сменить своё имя в этой комнате.
Invite
Пригласить участников в другую комнату.
Text(String)
Текстовое сообщение.
File
Сведения о выложенном файле. name короче 255 байт.
Fields
Ticket(String)
Поделиться идентификатором билета.
Tag
Пометить сообщение.
Fields
Subscription
Подписаться на обсуждение. flags — GNUNET_MESSENGER_FLAG_SUBSCRIPTION_*.
Fields
Talk
Данные обсуждения, не более 65535 байт.
Trait Implementations§
Source§impl Clone for OutgoingMessage
impl Clone for OutgoingMessage
Source§fn clone(&self) -> OutgoingMessage
fn clone(&self) -> OutgoingMessage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OutgoingMessage
impl Debug for OutgoingMessage
Source§impl PartialEq for OutgoingMessage
impl PartialEq for OutgoingMessage
impl StructuralPartialEq for OutgoingMessage
Auto Trait Implementations§
impl Freeze for OutgoingMessage
impl RefUnwindSafe for OutgoingMessage
impl Send for OutgoingMessage
impl Sync for OutgoingMessage
impl Unpin for OutgoingMessage
impl UnsafeUnpin for OutgoingMessage
impl UnwindSafe for OutgoingMessage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more