#[non_exhaustive]pub struct GetSerialPortOutputRequest {
pub instance: String,
pub port: Option<i32>,
pub project: String,
pub start: Option<i64>,
pub zone: String,
/* private fields */
}instances only.Expand description
Synthetic request message for the getSerialPortOutput() method.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.instance: StringName of the instance for this request.
port: Option<i32>Specifies which COM or serial port to retrieve data from.
project: StringProject ID for this request.
start: Option<i64>Specifies the starting byte position of the output to return. To start with
the first byte of output to the specified port, omit this field or set it
to 0.
If the output for that byte position is available, this field matches the
start parameter sent with the request. If the amount of serial console
output exceeds the size of the buffer (1 MB), the oldest output is
discarded and is no longer available. If the requested start position
refers to discarded output, the start position is adjusted to the oldest
output still available, and the adjusted start position is returned as the
start property value.
You can also provide a negative start position, which translates to the most recent number of bytes written to the serial port. For example, -3 is interpreted as the most recent 3 bytes written to the serial console. Note that the negative start is bounded by the retained buffer size, and the returned serial console output will not exceed the max buffer size.
zone: StringThe name of the zone for this request.
Implementations§
Source§impl GetSerialPortOutputRequest
impl GetSerialPortOutputRequest
pub fn new() -> Self
Sourcepub fn set_instance<T: Into<String>>(self, v: T) -> Self
pub fn set_instance<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_or_clear_port<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_port<T>(self, v: Option<T>) -> Self
Sourcepub fn set_project<T: Into<String>>(self, v: T) -> Self
pub fn set_project<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_or_clear_start<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_start<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for GetSerialPortOutputRequest
impl Clone for GetSerialPortOutputRequest
Source§fn clone(&self) -> GetSerialPortOutputRequest
fn clone(&self) -> GetSerialPortOutputRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more