pub enum ProjectScope {
Active,
Project(i64),
}Expand description
Project that a request which takes a project is for.
The active project is the one the host’s own frontend has open, read when
the host serves the request, so a frontend that sends
ProjectScope::Active follows the host when it switches projects. A
host serves another project only when it supports
SessionOperation::Projects and lists that project in
SessionBackend::list_projects.
Variants§
Active
The host’s active project when it serves the request.
Project(i64)
The listed project with this identifier, whether or not it is active.
Trait Implementations§
Source§impl Clone for ProjectScope
impl Clone for ProjectScope
impl Copy for ProjectScope
Source§impl Debug for ProjectScope
impl Debug for ProjectScope
Source§impl Default for ProjectScope
impl Default for ProjectScope
impl Eq for ProjectScope
Source§impl Hash for ProjectScope
impl Hash for ProjectScope
Source§impl PartialEq for ProjectScope
impl PartialEq for ProjectScope
impl StructuralPartialEq for ProjectScope
Auto Trait Implementations§
impl Forget for ProjectScope
impl Freeze for ProjectScope
impl Move for ProjectScope
impl RefUnwindSafe for ProjectScope
impl Send for ProjectScope
impl Sync for ProjectScope
impl Unpin for ProjectScope
impl UnsafeUnpin for ProjectScope
impl UnwindSafe for ProjectScope
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.