pub enum Ask {
Hello {
protocol: u16,
who: Option<Identity>,
},
Reach {
host: Host,
needs: Needs,
},
Done {
host: Host,
},
}Expand description
What the client says.
Variants§
Hello
Opens the session: which vocabulary I speak, and who I claim to be.
Fields
Reach
Introduce me to this host.
The name is the graph’s — w1, gpu-a — and resolving it is the whole
job of a broker. A Host and not a string, so that the thing the
engine placed and the thing the broker resolves are the same type all
the way down.
Done
I am done with this host: let the rendezvous go.
Nothing is held by an embedded broker, so nothing is released. It is here because without it the platform cannot tell a session that ended from one that died, which is metering rather than politeness.
Implementations§
Source§impl Ask
impl Ask
Sourcepub fn from_bytes(bytes: &[u8]) -> Result<Self, Unreadable>
pub fn from_bytes(bytes: &[u8]) -> Result<Self, Unreadable>
And back from them.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Ask
impl<'de> Deserialize<'de> for Ask
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Ask
impl StructuralPartialEq for Ask
Auto Trait Implementations§
impl Freeze for Ask
impl RefUnwindSafe for Ask
impl Send for Ask
impl Sync for Ask
impl Unpin for Ask
impl UnsafeUnpin for Ask
impl UnwindSafe for Ask
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