Enum distant_net::manager::ManagerRequest
source · pub enum ManagerRequest {
Version,
Launch {
destination: Box<Destination>,
options: Map,
},
Connect {
destination: Box<Destination>,
options: Map,
},
Authenticate {
id: ManagerAuthenticationId,
msg: AuthenticationResponse,
},
OpenChannel {
id: ConnectionId,
},
Channel {
id: ManagerChannelId,
request: UntypedRequest<'static>,
},
CloseChannel {
id: ManagerChannelId,
},
Info {
id: ConnectionId,
},
Kill {
id: ConnectionId,
},
List,
}
Variants§
Version
Retrieve information about the manager’s version.
Launch
Launch a server using the manager
Connect
Initiate a connection through the manager
Authenticate
Fields
§
id: ManagerAuthenticationId
Id of the authentication request that is being responded to
§
msg: AuthenticationResponse
Response being sent to some active connection
Submit some authentication message for the manager to use with an active connection
OpenChannel
Fields
§
id: ConnectionId
Id of the connection
Opens a channel for communication with an already-connected server
Channel
Fields
§
id: ManagerChannelId
Id of the channel
§
request: UntypedRequest<'static>
Untyped request to send through the channel
Sends data through channel
CloseChannel
Fields
§
id: ManagerChannelId
Id of the channel to close
Closes an open channel
Info
Fields
§
id: ConnectionId
Retrieve information about a specific connection
Kill
Fields
§
id: ConnectionId
Kill a specific connection
List
Retrieve list of connections being managed
Trait Implementations§
source§impl Clone for ManagerRequest
impl Clone for ManagerRequest
source§fn clone(&self) -> ManagerRequest
fn clone(&self) -> ManagerRequest
Returns a copy of the value. Read more
1.0.0 · 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 ManagerRequest
impl Debug for ManagerRequest
source§impl<'de> Deserialize<'de> for ManagerRequest
impl<'de> Deserialize<'de> for ManagerRequest
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
Auto Trait Implementations§
impl RefUnwindSafe for ManagerRequest
impl Send for ManagerRequest
impl Sync for ManagerRequest
impl Unpin for ManagerRequest
impl UnwindSafe for ManagerRequest
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