pub struct CuSessionState {
pub command: Option<CuSessionCommand>,
pub sequence: u32,
pub result: CuSessionResult,
pub rejection: CuSessionRejection,
pub detail: CuSessionDetail,
pub control_acquired: bool,
pub drives_enabled: bool,
pub drives_ready: bool,
pub motion_allowed: bool,
pub refused: u32,
}Expand description
Session state, the payload of a bridge’s session_state Rx channel.
Fields§
§command: Option<CuSessionCommand>Most recent command, absent before the first request.
sequence: u32Protocol sequence number the command was sent with.
result: CuSessionResultOutcome of that command.
rejection: CuSessionRejectionWho rejected it, when result is Rejected.
detail: CuSessionDetailController text accompanying a rejection.
control_acquired: boolThe controller reports this client in control.
drives_enabled: boolDrives were enabled by an acknowledged EnableDrives and not since disabled.
drives_ready: boolEvery drive reports ready. Lags drives_enabled on controllers that
bring axes up one at a time.
motion_allowed: boolThe controller reports that it would accept motion now.
refused: u32Requests refused because another command was still pending.
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for CuSessionState
impl<'__de, __Context> BorrowDecode<'__de, __Context> for CuSessionState
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for CuSessionState
impl Clone for CuSessionState
Source§fn clone(&self) -> CuSessionState
fn clone(&self) -> CuSessionState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CuSessionState
impl Debug for CuSessionState
Source§impl<__Context> Decode<__Context> for CuSessionState
impl<__Context> Decode<__Context> for CuSessionState
Source§impl Default for CuSessionState
impl Default for CuSessionState
Source§fn default() -> CuSessionState
fn default() -> CuSessionState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CuSessionState
impl<'de> Deserialize<'de> for CuSessionState
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
Source§impl Encode for CuSessionState
impl Encode for CuSessionState
Source§impl PartialEq for CuSessionState
impl PartialEq for CuSessionState
Source§impl Serialize for CuSessionState
impl Serialize for CuSessionState
impl StructuralPartialEq for CuSessionState
Source§impl TypePath for CuSessionState
impl TypePath for CuSessionState
fn type_path() -> &'static str
fn short_type_path() -> &'static str
fn type_ident() -> Option<&'static str>
fn crate_name() -> Option<&'static str>
fn module_path() -> Option<&'static str>
Auto Trait Implementations§
impl Freeze for CuSessionState
impl RefUnwindSafe for CuSessionState
impl Send for CuSessionState
impl Sync for CuSessionState
impl Unpin for CuSessionState
impl UnsafeUnpin for CuSessionState
impl UnwindSafe for CuSessionState
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,
impl<T> CuMsgPayload for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> GetTypeRegistration for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more