pub struct Hello {
pub version: u32,
pub agent: Option<String>,
pub refs: Vec<String>,
pub one_way: bool,
}Expand description
The first message of a push client.
Fields§
§version: u32The protocol version that the client requests.
agent: Option<String>The name and version of the client, under the key agent.
refs: Vec<String>The refs that the client intends to update, each NAME or
@ID:NAME, and in a one-way stream also REMOTE:NAME.
The server reads @ID:NAME with ID its own collection id as the
local ref NAME.
one_way: boolThe flag that is true if the Hello opens a
one-way stream.
In a one-way stream, the receiver sends no message. The key is
one-way. The encoder writes the key only if the value is true, and
the decoder reads an absent key as false.
Trait Implementations§
impl Eq for Hello
impl StructuralPartialEq for Hello
Auto Trait Implementations§
impl Forget for Hello
impl Freeze for Hello
impl Move for Hello
impl RefUnwindSafe for Hello
impl Send for Hellowhere
RawVecInner: Send,
impl Sync for Hellowhere
RawVecInner: Sync,
impl Unpin for Hello
impl UnsafeUnpin for Hellowhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for Hellowhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.