pub struct PhlowServer(/* private fields */);
Implementations§
Source§impl PhlowServer
impl PhlowServer
Sourcepub fn new(root_object: PhlowObject) -> Self
pub fn new(root_object: PhlowObject) -> Self
pub fn id(&self) -> PhlowObjectId
pub fn session(&self) -> Uuid
pub fn add_route(&self, method: &str, new_route: &str)
pub fn get_routes(&self) -> Vec<(String, String)>
Sourcepub fn register_object(&self, object: PhlowObject) -> PhlowObjectDescription
pub fn register_object(&self, object: PhlowObject) -> PhlowObjectDescription
pub fn release_object( &self, session: Uuid, object_id: PhlowObjectId, ) -> Option<PhlowObject>
pub fn root_phlow_views(&self) -> Vec<Box<dyn PhlowView>>
Sourcepub fn inspect_objects(&self) -> Vec<PhlowObjectDescription>
pub fn inspect_objects(&self) -> Vec<PhlowObjectDescription>
Return descriptions of registered objects. Doesn’t increase the reference count
pub fn find_object(&self, id: PhlowObjectId) -> Option<PhlowObject>
Sourcepub fn retrieve_object(
&self,
id: PhlowObjectId,
) -> Option<PhlowObjectDescription>
pub fn retrieve_object( &self, id: PhlowObjectId, ) -> Option<PhlowObjectDescription>
Return object description for a given object id. Increases the reference count
pub fn registered_object_description_by_id_views( &self, id: PhlowObjectId, ) -> Option<Vec<Box<dyn PhlowView>>>
Trait Implementations§
Source§impl Clone for PhlowServer
impl Clone for PhlowServer
Source§fn clone(&self) -> PhlowServer
fn clone(&self) -> PhlowServer
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PhlowServer
impl Debug for PhlowServer
Source§impl Phlow<PhlowServerExtensions> for PhlowServer
impl Phlow<PhlowServerExtensions> for PhlowServer
fn phlow_view_methods(extension: &PhlowExtension) -> Vec<PhlowViewMethod>
fn phlow_extension() -> Option<PhlowExtension>
Auto Trait Implementations§
impl Freeze for PhlowServer
impl !RefUnwindSafe for PhlowServer
impl Send for PhlowServer
impl Sync for PhlowServer
impl Unpin for PhlowServer
impl !UnwindSafe for PhlowServer
Blanket Implementations§
Source§impl<T> AsPhlowObject for T
impl<T> AsPhlowObject for T
default fn is_phlow_object(&self) -> bool
default fn try_into_phlow_object(&self) -> Option<PhlowObject>
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