pub struct DirectionDisableResponse { /* private fields */ }Expand description
Represents the Response to a DirectionDisableRequest.
Implementations§
Source§impl DirectionDisableResponse
impl DirectionDisableResponse
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new DirectionDisableResponse.
Sourcepub const fn code(&self) -> ResponseCode
pub const fn code(&self) -> ResponseCode
Gets the ResponseCode for the DirectionDisableResponse.
Sourcepub fn set_code(&mut self, code: ResponseCode)
pub fn set_code(&mut self, code: ResponseCode)
Sets the ResponseCode for the DirectionDisableResponse.
Sourcepub fn with_code(self, code: ResponseCode) -> Self
pub fn with_code(self, code: ResponseCode) -> Self
Builder function that sets the ResponseCode for the DirectionDisableResponse.
Sourcepub fn directions(&self) -> InhibitDirection
pub fn directions(&self) -> InhibitDirection
Gets the InhibitDirection for the [InhibitDirectionResponse].
Sourcepub fn set_directions(&mut self, dirs: InhibitDirection)
pub fn set_directions(&mut self, dirs: InhibitDirection)
Sets the InhibitDirection for the [InhibitDirectionResponse].
Sourcepub fn with_directions(self, dirs: InhibitDirection) -> Self
pub fn with_directions(self, dirs: InhibitDirection) -> Self
Builder function that sets the InhibitDirection for the [InhibitDirectionResponse].
Sourcepub const fn len() -> usize
pub const fn len() -> usize
Gets the length of the DirectionDisableResponse.
Sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Gets whether the DirectionDisableResponse is empty.
Sourcepub fn iter_bytes(&self) -> impl Iterator<Item = u8> + '_
pub fn iter_bytes(&self) -> impl Iterator<Item = u8> + '_
Gets an iterator over DirectionDisableResponse bytes.
Sourcepub fn into_iter_bytes(self) -> impl Iterator<Item = u8>
pub fn into_iter_bytes(self) -> impl Iterator<Item = u8>
Gets an iterator over DirectionDisableResponse bytes.
Sourcepub fn into_bytes(self) -> Vec<u8> ⓘ
pub fn into_bytes(self) -> Vec<u8> ⓘ
Converts a DirectionDisableResponse into a byte vector.
Sourcepub fn from_bytes(buf: &[u8]) -> Result<Self>
pub fn from_bytes(buf: &[u8]) -> Result<Self>
Converts a byte buffer into a DirectionDisableResponse.
Trait Implementations§
Source§impl Clone for DirectionDisableResponse
impl Clone for DirectionDisableResponse
Source§fn clone(&self) -> DirectionDisableResponse
fn clone(&self) -> DirectionDisableResponse
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more