[][src]Struct librojo::rbx_session::RbxSession

pub struct RbxSession { /* fields omitted */ }

Contains all of the state needed to update an RbxTree in real time using the in-memory filesystem, as well as messaging to Rojo clients what instances have actually updated at any point.

Methods

impl RbxSession[src]

pub fn new(
    project: Arc<Project>,
    imfs: Arc<Mutex<Imfs>>,
    message_queue: Arc<MessageQueue<InstanceChanges>>
) -> Result<RbxSession, SnapshotError>
[src]

pub fn path_created(&mut self, path: &Path)[src]

pub fn path_updated(&mut self, path: &Path)[src]

pub fn path_removed(&mut self, path: &Path)[src]

pub fn path_renamed(&mut self, from_path: &Path, to_path: &Path)[src]

pub fn get_tree(&self) -> &RbxTree[src]

pub fn get_all_instance_metadata(&self) -> &HashMap<RbxId, MetadataPerInstance>[src]

pub fn get_instance_metadata(&self, id: RbxId) -> Option<&MetadataPerInstance>[src]

Auto Trait Implementations

impl Send for RbxSession

impl Sync for RbxSession

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T