pub struct FlowInfo {Show 13 fields
pub index: Option<i32>,
pub type: Option<i32>,
pub density: Option<i32>,
pub pos: Option<Coord>,
pub dest: Option<Coord>,
pub expanding: Option<bool>,
pub reuse: Option<bool>,
pub guide_id: Option<i32>,
pub material: Option<MatPair>,
pub item: Option<MatPair>,
pub dead: Option<bool>,
pub fast: Option<bool>,
pub creeping: Option<bool>,
}Fields§
§index: Option<i32>§type: Option<i32>§density: Option<i32>§pos: Option<Coord>§dest: Option<Coord>§expanding: Option<bool>§reuse: Option<bool>👎Deprecated
§guide_id: Option<i32>§material: Option<MatPair>§item: Option<MatPair>§dead: Option<bool>§fast: Option<bool>§creeping: Option<bool>Implementations§
Source§impl FlowInfo
impl FlowInfo
Sourcepub fn type(&self) -> FlowType
pub fn type(&self) -> FlowType
Returns the enum value of type, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn density(&self) -> i32
pub fn density(&self) -> i32
Returns the value of density, or the default value if density is unset.
Sourcepub fn expanding(&self) -> bool
pub fn expanding(&self) -> bool
Returns the value of expanding, or the default value if expanding is unset.
Sourcepub fn reuse(&self) -> bool
pub fn reuse(&self) -> bool
Returns the value of reuse, or the default value if reuse is unset.
Trait Implementations§
Source§impl Message for FlowInfo
impl Message for FlowInfo
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl Name for FlowInfo
impl Name for FlowInfo
Source§const NAME: &'static str = "FlowInfo"
const NAME: &'static str = "FlowInfo"
Simple name for this
Message.
This name is the same as it appears in the source .proto file, e.g. FooBar.Source§const PACKAGE: &'static str = "RemoteFortressReader"
const PACKAGE: &'static str = "RemoteFortressReader"
Package name this message type is contained in. They are domain-like
and delimited by
., e.g. google.protobuf.Source§fn full_name() -> String
fn full_name() -> String
Fully-qualified unique name for this
Message.
It’s prefixed with the package name and names of any parent messages,
e.g. google.rpc.BadRequest.FieldViolation.
By default, this is the package name followed by the message name.
Fully-qualified names must be unique within a domain of Type URLs.impl Copy for FlowInfo
impl Eq for FlowInfo
impl StructuralPartialEq for FlowInfo
Auto Trait Implementations§
impl Freeze for FlowInfo
impl RefUnwindSafe for FlowInfo
impl Send for FlowInfo
impl Sync for FlowInfo
impl Unpin for FlowInfo
impl UnsafeUnpin for FlowInfo
impl UnwindSafe for FlowInfo
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