pub struct FriendRights(pub i32);Expand description
The rights one party grants the other in a Second Life friendship: a
bitfield shared by the login buddy-list, GrantUserRights, and
ChangeUserRights. The flag values match the viewer’s RIGHTS_*/GRANT_*
constants.
Tuple Fields§
§0: i32Implementations§
Source§impl FriendRights
impl FriendRights
Sourcepub const CAN_SEE_ONLINE: i32
pub const CAN_SEE_ONLINE: i32
The other party may see when this party is online (GRANT_ONLINE_STATUS).
Sourcepub const CAN_SEE_ON_MAP: i32
pub const CAN_SEE_ON_MAP: i32
The other party may see this party’s location on the world map
(GRANT_MAP_LOCATION).
Sourcepub const CAN_MODIFY_OBJECTS: i32
pub const CAN_MODIFY_OBJECTS: i32
The other party may modify this party’s objects (GRANT_MODIFY_OBJECTS).
Sourcepub const fn can_see_online(self) -> bool
pub const fn can_see_online(self) -> bool
Whether the see-online bit is set.
Sourcepub const fn can_see_on_map(self) -> bool
pub const fn can_see_on_map(self) -> bool
Whether the see-on-map bit is set.
Sourcepub const fn can_modify_objects(self) -> bool
pub const fn can_modify_objects(self) -> bool
Whether the modify-objects bit is set.
Trait Implementations§
Source§impl Clone for FriendRights
impl Clone for FriendRights
Source§fn clone(&self) -> FriendRights
fn clone(&self) -> FriendRights
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 moreimpl Copy for FriendRights
Source§impl Debug for FriendRights
impl Debug for FriendRights
Source§impl Default for FriendRights
impl Default for FriendRights
Source§fn default() -> FriendRights
fn default() -> FriendRights
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FriendRights
impl<'de> Deserialize<'de> for FriendRights
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
impl Eq for FriendRights
Source§impl PartialEq for FriendRights
impl PartialEq for FriendRights
Source§fn eq(&self, other: &FriendRights) -> bool
fn eq(&self, other: &FriendRights) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FriendRights
impl Serialize for FriendRights
impl StructuralPartialEq for FriendRights
Auto Trait Implementations§
impl Freeze for FriendRights
impl RefUnwindSafe for FriendRights
impl Send for FriendRights
impl Sync for FriendRights
impl Unpin for FriendRights
impl UnsafeUnpin for FriendRights
impl UnwindSafe for FriendRights
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