pub enum Peer {
CidrBlock(String),
PeerSecurityGroup(String),
SameGroup(bool),
}Expand description
The rule’s peer: exactly one of these. None, or more than one, is
refused with INVALID_ARGUMENT.
Variants§
CidrBlock(String)
The peer as an address range: where admitted traffic comes from, or where sent traffic goes to.
PeerSecurityGroup(String)
The peer as another security group of the same VPC, by its full
name: its members’ addresses. The rule’s own group is refused here
with INVALID_ARGUMENT: it is same_group.
SameGroup(bool)
The peer as the rule’s own group’s members; only true is a peer.
Implementations§
Source§impl Peer
impl Peer
Sourcepub fn merge(
field: &mut Option<Peer>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<Peer>, tag: u32, wire_type: WireType, buf: &mut impl Buf, ctx: DecodeContext, ) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into self.
Sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
impl Eq for Peer
impl StructuralPartialEq for Peer
Auto Trait Implementations§
impl Forget for Peer
impl Freeze for Peer
impl Move for Peer
impl RefUnwindSafe for Peer
impl Send for Peer
impl Sync for Peer
impl Unpin for Peer
impl UnsafeUnpin for Peer
impl UnwindSafe for Peer
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.