pub enum Request {
SaveDna {
id: String,
content: Vec<u8>,
},
DownloadDna {
url: String,
},
ConfigurePlayer {
id: String,
partial_config: String,
},
Startup {
id: String,
log_level: Option<String>,
},
Shutdown {
id: String,
signal: Option<String>,
},
Reset,
CallAdminInterface {
id: String,
message: Vec<u8>,
},
ConnectAppInterface {
token: Vec<u8>,
port: u16,
},
DisconnectAppInterface {
port: u16,
},
CallAppInterface {
port: u16,
message: Vec<u8>,
},
DownloadLogs {
id: String,
},
}Expand description
Trycp server requests.
Variants§
SaveDna
Given a DNA file, stores the DNA and returns the path at which it is stored.
DownloadDna
Given a DNA URL, ensures that the DNA is downloaded and returns the path at which it is stored.
ConfigurePlayer
Set up a player.
Fields
Startup
Start a conductor.
Shutdown
Shut down a conductor.
Fields
Reset
Shuts down all running conductors.
CallAdminInterface
Make an admin request.
ConnectAppInterface
Hook up an app interface.
DisconnectAppInterface
Disconnect an app interface.
CallAppInterface
Make an ap request.
DownloadLogs
Request the logs for a player’s conductor and keystore.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Request
impl<'de> Deserialize<'de> for Request
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Request, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Request, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Request
impl Serialize for Request
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
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