Enum distant_net::manager::ManagerResponse
source · pub enum ManagerResponse {
Killed,
Error {
description: String,
},
Capabilities {
supported: ManagerCapabilities,
},
Launched {
destination: Destination,
},
Connected {
id: ConnectionId,
},
Authenticate {
id: ManagerAuthenticationId,
msg: Authentication,
},
Info(ConnectionInfo),
List(ConnectionList),
Channel {
id: ManagerChannelId,
response: UntypedResponse<'static>,
},
ChannelOpened {
id: ManagerChannelId,
},
ChannelClosed {
id: ManagerChannelId,
},
}Variants
Killed
Acknowledgement that a connection was killed
Error
Fields
description: StringIndicates that some error occurred during a request
Capabilities
Fields
supported: ManagerCapabilitiesResponse to retrieving information about the manager’s capabilities
Launched
Fields
destination: DestinationUpdated location of the spawned server
Confirmation of a server being launched
Connected
Fields
id: ConnectionIdConfirmation of a connection being established
Authenticate
Fields
id: ManagerAuthenticationIdId tied to authentication information in case a response is needed
msg: AuthenticationAuthentication message
Authentication information being sent to a client
Info(ConnectionInfo)
Information about a specific connection
List(ConnectionList)
List of connections in the form of id -> destination
Channel
Fields
id: ManagerChannelIdId of the channel
response: UntypedResponse<'static>Untyped response to send through the channel
Forward a response back to a specific channel that made a request
ChannelOpened
Fields
id: ManagerChannelIdId of the channel
Indicates that a channel has been opened
ChannelClosed
Fields
id: ManagerChannelIdId of the channel
Indicates that a channel has been closed
Trait Implementations
sourceimpl Clone for ManagerResponse
impl Clone for ManagerResponse
sourcefn clone(&self) -> ManagerResponse
fn clone(&self) -> ManagerResponse
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more